package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.pyq.pyqfollowcomment.PyqFollowCommentQuery;
import com.uzai.console.dto.pyq.pyqfollowconfig.PyqFollowConfigQuery;
import com.uzai.console.entity.PyqFollowComment;
import com.uzai.console.entity.PyqFollowConfig;
import com.uzai.console.entity.PyqFollowedContent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface PyqFollowCommentMapper {
    int deleteById(Long id);

    int deleteBeforeDay(@Param("beforeDay") Integer beforeDay);

    int insert(PyqFollowComment record);

    int insertSelective(PyqFollowComment record);

    PyqFollowComment selectById(Long id);

    PyqFollowComment selectByDeviceUniqueIdAndFollowedSnsIdAndFollowedCommentId(@Param("deviceUniqueId") Long deviceUniqueId, @Param("followedSnsId") String followedSnsId, @Param("followedCommentId") String followedCommentId);

    int updateByIdSelective(PyqFollowComment record);

    int updateById(PyqFollowComment record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    ArrayList<PyqFollowComment> findByList(Page<PyqFollowComment> page, @Param("query") PyqFollowCommentQuery query);

    /**
     * 查询所有
     * @param query
     * @return
     */
    ArrayList<PyqFollowComment> findByList(@Param("query") PyqFollowCommentQuery query);
}